const express = require("express");
const expressJoi = require("@escook/express-joi");
const router = express.Router();
const ip_handler = require("../router_handler/ip");
const { reg_ip_schema } = require("../schema/ip");

router.get("/list", ip_handler.getLists);
router.get("/get", ip_handler.getIp);
router.post("/updata", expressJoi(reg_ip_schema), ip_handler.updataIp);
router.delete("/del", ip_handler.delIp);

module.exports = router;